import request from '@/utils/request'

// 获取列表全部
export function taskIndex(params) {
    return request({
        url: '/manage/task/taskIndex',
        method: 'get',
        params
    })
}

// 获取列表未发布
export function taskWaitingIndex(params) {
    return request({
        url: '/manage/task/taskWaitingIndex',
        method: 'get',
        params
    })
}
// 获取列表未开始
export function taskPublishIndex(params) {
    return request({
        url: '/manage/task/taskPublishIndex',
        method: 'get',
        params
    })
}

// 获取列表进行中
export function taskWorkingIndex(params) {
    return request({
        url: '/manage/task/taskWorkingIndex',
        method: 'get',
        params
    })
}


// 获取列表已结束
export function taskEndingIndex(params) {
    return request({
        url: '/manage/task/taskEndingIndex',
        method: 'get',
        params
    })
}

// 发布
export function btnPublish(data) {
    return request({
        url: '/manage/task/btnPublish',
        method: 'post',
        data
    })
}

// 删除
export function btnDelete(data) {
    return request({
        url: '/manage/task/btnDelete',
        method: 'post',
        data
    })
}

// 定时开奖
export function timeDrawIndex(params) {
    return request({
        url: '/manage/task/timeDrawIndex',
        method: 'get',
        params
    })
}

// 定时开奖
export function drawUserList(params) {
    return request({
        url: '/manage/task/drawUserList',
        method: 'get',
        params
    })
}

// 批量定时开奖
export function timeDrawList(data) {
    return request({
        url: '/manage/task/timeDrawList',
        method: 'post',
        data
    })
}

// 单个定时开奖
export function timeDraw(data) {
    return request({
        url: '/manage/task/timeDraw',
        method: 'post',
        data
    })
}

// 获取奖项列表
export function drawList(params) {
    return request({
        url: '/manage/task/drawList',
        method: 'get',
        params
    })
}

// 全部导出
export function taskIndexExport(data) {
    return request({
        url: '/manage/task/taskIndexExport',
        method: 'post',
        data
    })
}


export function taskWaitingIndexExport(data) {
    return request({
        url: '/manage/task/taskWaitingIndexExport',
        method: 'post',
        data
    })
}


export function taskPublishIndexExport(data) {
    return request({
        url: '/manage/task/taskPublishIndexExport',
        method: 'post',
        data
    })
}


export function taskWorkingIndexExport(data) {
    return request({
        url: '/manage/task/taskWorkingIndexExport',
        method: 'post',
        data
    })
}

export function taskEndingIndexExport(data) {
    return request({
        url: '/manage/task/taskEndingIndexExport',
        method: 'post',
        data
    })
}

